package org.lds.scheduled.job.admin.business.job.converter;

import org.lds.scheduled.job.admin.business.job.entity.Job;
import org.lds.scheduled.job.admin.business.job.model.request.JobBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class JobBaseDeleteRequestToEntityConverter implements Converter<JobBaseDeleteRequest, Job> {

    @Override
    public Job convert(JobBaseDeleteRequest source) {
        return Job.builder()
                .id(source.getId())
                .build();
    }

}


